package cn.kgc.watch.service.impl;

import cn.kgc.watch.entity.Attribute;
import cn.kgc.watch.mapper.AttributeMapper;
import cn.kgc.watch.service.AttributeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AttributeServiceImpl implements AttributeService{

    @Resource
    private AttributeMapper attributeMapper;

    @Override
    public List<Attribute> findCategoryById(Integer id) {
        return attributeMapper.selectCategoryById(id);
    }

    @Override
    public List<Attribute> findAll() {
        return attributeMapper.selectAll();
    }
}
